// 在 node.js 用GET请求获取远程图片
const axios = require("axios")
const fs = require("fs")
axios({
    method: 'get',
    url: 'https://tse3-mm.cn.bing.net/th/id/OIP-C.Pv06nrHFIVQL-WkXqbRaVQHaHI?rs=1&pid=ImgDetMain',
    responseType: 'stream'
}).then(function (response) {
    response.data.pipe(fs.createWriteStream('ada_lovelace.jpg'))
});
